package com.gsafety.library.Net;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 * @author : lj
 * @date : 2020/9/18 17:39
 */
public interface RequestHandler {

    /**
     * 发起请求拦截方法
     */
    Request  onBeforeRequest(Request request, Interceptor.Chain chain);

    /**
     * 请求结果拦截方法
     */
    Response onAfterRequest(Response response, Interceptor.Chain chain);
}
